package com.gaga.crm;

import com.gaga.crm.pojo.SysUser;
import com.gaga.crm.service.UserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

@SpringBootTest
@RunWith(SpringRunner.class)
public class CacheTester {

    @Resource
    private UserService userService;

    @Test
    public void testGetUser() {
        SysUser user = userService.getUser(2L);
        System.out.println("user.usrName:" + user.getUsrName());
    }

}
